<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeIn">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="ibox-tab">
                        <a class='ajax-goto on'>{$page_title}</a>
                    </div>
                    <div class="ibox-tools"><a href="javascript:void(0);" class="btn btn-xs btn-default btn-help-detail"  data-type="cst_customer"> <i class="fa fa-question-circle"> 操作说明</i></a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <form id="pagerForm" method="post" class="form-inline searchForm">

                            <div class="col-sm-12">
                                <div class="input-group text-left form-group">
                                    <select data-placeholder="选择实名类型" name="real_type" class="form-control">
                                        <option value="">选择实名类型</option>
                                        {volist name='real_type_list' id='vo'}
                                        <option value="{$key}">{$vo['name']}</option>
                                        {/volist}
                                    </select>
                                </div>
                                <div class="input-group text-left form-group">
                                    <select data-placeholder="选择审核状态" name="status" class="form-control">
                                        <option value="">选择审核状态</option>
                                        {volist name='status_list' id='vo'}
                                        <option value="{$key}">{$vo['name']}</option>
                                        {/volist}
                                    </select>
                                </div>
                                <div class="input-group">
                                    <input type="text" name="keywords" placeholder="输入关键字搜索" class="form-control">
                                </div>
                                <div class="input-group">
                                    <span class="input-group-btn"> <button type="button" class="btn btn-primary ajaxSearchForm"><i class="fa fa-search"></i> 搜索</button></span>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="ibox ">
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-10">
                            <lqf_link><a class="btn btn-info ajax-open"  data-url="{:url('admin.MemberRealname/add')}"><i class="fa fa-plus"></i> 添加</a></lqf_link>
                        </div>
                        <div class="col-sm-2 text-right">
                            <a href="javascript:void(0);" class="btn btn-default btn-outline btn-field-set" data-id="{$page_title|default=''}"> <i class="fa fa-columns"></i> 列</a>
                        </div>
                    </div>
                </div>
                <div class="ibox-content table-responsive">
                    <table class="table table-hover sorttable ajax-list-table" data-url="{:url('admin.MemberRealname/show_json')}" width="100%">
                        <thead>
                        <tr>
                            <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                            <th width="50"><span>ID</span></th>
                            <th width="100"><span>会员帐号</span></th>
                            <th width="100"><span>真实名称</span></th>
                            <th width="100"><span>认证类型</span></th>
                            <th width="100"><span>证件类型</span></th>
                            <th width="100"><span>证件号码</span></th>
                            <th width="100" class="text-center"><span>证件图片</span></th>
                            <th width="60" class="text-center"><span>状态</span></th>
                            <th width="80" class="text-center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        </tbody>
                        <tfoot class="ibox-content">
                        <tr>
                            <td colspan="9" align="center"></td>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script id="tableListTpl" type="text/html">
    <% for(var i=0;i<data.length;i++) { %>
    <tr>
        <td><input name="user_id" class="checkboxCtrlId" value="<%=data[i]['id']%>" type="checkbox"></td>
        <td><%=data[i]['id']%></td>
        <td><%=data[i]['username']%></td>
        <td><%=data[i]['realname']%></td>
        <td><%:=data[i]['real_type_arr']['html']%></td>
        <td><%=data[i]['cert_type']%></td>
        <td><%=data[i]['cert_code']%></td>
        <td class="text-center">
            <img src="<%=data[i]['cert_pic']%>" width="60">
        </td>
        <td class="text-center"><%:=data[i]['status_arr']['html']%></td>
        <td class="text-center">
                <lqf_link><a class="ajax-get" data-url="{:url('admin.MemberRealname/pass')}"  data-ids="{'id':'<%=data[i]['id']%>','status':'1'}">通过</a></lqf_link>
                <lqf_link><a class="ajax-open" data-url="{:url('admin.MemberRealname/reject')}"  data-ids="{'id':'<%=data[i]['id']%>','status':'2'}">拒绝</a></lqf_link>
                <lqf_link><a class="ajax-del confirm" data-url="{:url('admin.MemberRealname/del')}" data-ids="{'id':'<%=data[i]['id']%>'}">删除</a></lqf_link>
            </p>
        </td>
    </tr>
    <% } %>
</script>
<script type="text/javascript">
    $(document).ready(function () {
        turnPage(1);//页面加载时初始化分页
    });
</script>